package com.github.zyf.ioaj.exception;

import com.github.zyf.ioaj.exception.constant.AlgorithmClassParserExceptionType;

/**
 * @author zyf
 */
public class AlgorithmClassParserException extends RuntimeException{
    private final String message;

    public AlgorithmClassParserException(AlgorithmClassParserExceptionType exceptionType) {
        super(exceptionType.getDesc());
        this.message = exceptionType.getDesc();
    }

    @Override
    public String getMessage() {
        return message;
    }
}
